package com.kingyea.mobilepolice.roleapipermission.service;

import com.kingyea.mobilepolice.roleapipermission.bean.RoleApiPermission;

import java.util.List;

/**
 * @author hx
 * @version v1.0.0
 * @description RoleApiPermission 接口
 * @date Created in 2018-05-15 20:25:07
 */
public interface RoleApiPermissionService {

    /**
     * 通过ID查找对象
     *
     * @param roleId
     * @return
     */
    RoleApiPermission getById(Integer roleId) throws Exception;

    /**
     * 列表
     *
     * @param roleApiPermission
     * @return
     */
    List<RoleApiPermission> search(RoleApiPermission roleApiPermission) throws Exception;

    /**
     * 删除
     *
     * @param roleId
     * @return
     */
    int deleteById(Integer roleId) throws Exception;

    /**
     * 添加
     *
     * @param roleApiPermission
     * @return
     */
    RoleApiPermission save(RoleApiPermission roleApiPermission) throws Exception;

    /**
     * 更新
     *
     * @param roleApiPermission
     * @return
     */
    RoleApiPermission update(RoleApiPermission roleApiPermission) throws Exception;

    Object searchByRole(RoleApiPermission roleApiPermission) throws Exception;
}
